Spread Windows Forms 15.0
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SheetView Class / AddChart Method / AddChart(CellRange[],Type,Int32,Int32,Int32,Int32) Method
Multiple cell ranges that are used to create data for the chart.
Indicates which chart type will be added.
Width of the chart.
Height of the chart.
The x-position.
The y-position.


In This Topic
    AddChart(CellRange[],Type,Int32,Int32,Int32,Int32) Method
    In This Topic
    Adds a chart to the SheetView. The chart will be aligned in the center of the SheetView.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddChart( _
       ByVal cellRanges() As CellRange, _
       ByVal seriesType As Type, _
       ByVal width As Integer, _
       ByVal height As Integer, _
       ByVal x As Integer, _
       ByVal y As Integer _
    ) As SpreadChart
    'Usage
     
    
    Dim instance As SheetView
    Dim cellRanges() As CellRange
    Dim seriesType As Type
    Dim width As Integer
    Dim height As Integer
    Dim x As Integer
    Dim y As Integer
    Dim value As SpreadChart
     
    value = instance.AddChart(cellRanges, seriesType, width, height, x, y)

    Parameters

    cellRanges
    Multiple cell ranges that are used to create data for the chart.
    seriesType
    Indicates which chart type will be added.
    width
    Width of the chart.
    height
    Height of the chart.
    x
    The x-position.
    y
    The y-position.

    Return Value

    The new created instance of the chart.
    See Also